﻿<?xml version="1.0" encoding="utf-8"?>
<xs:schema attributeFormDefault="unqualified"
           elementFormDefault="qualified"
           targetNamespace="http://schemas.mvitorino.com/pylor/2010/03/rules.xsd"
           xmlns:xs="http://www.w3.org/2001/XMLSchema">

  <xs:element name="Rules">
    <xs:complexType>
      <xs:sequence>
        <xs:element maxOccurs="unbounded" minOccurs="0" name="Rule">
          <xs:complexType>
            <xs:attribute name="roles" type="xs:string" use="required" />
            <xs:attribute name="resource" type="xs:string" use="required" />
            <xs:attribute name="permission" type="xs:string" use="required" />
          </xs:complexType>
        </xs:element>
      </xs:sequence>
    </xs:complexType>
  </xs:element>

</xs:schema>